/* An alternative style to the original mockup style */

/* Defaults
---------------------------------------------- */
body {
	opacity: 0;
	min-width: 320px;
	margin: 0;
	padding: 0;
	line-height: 120%;
	background-color: #222;
	background-image: url("/static/img/dark-texture.png");
	font-family: "Lato", sans-serif;
	font-weight: 300;
}

img {
	max-width: 100%;
}

*, *:before, *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}

/* Header
---------------------------------------------- */
#header {
	width: 100%;
	height: 80px;
	background-color: #222;
	background-image: url("/static/img/dark-texture.png");
	font-family: "Meddon", sans-serif;
	font-size: 38px;
	color: #EBE7E2;
	line-height: 80px;
	text-shadow: 0 -1px 1px #AFAB6B;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

/* Navigation
---------------------------------------------- */

#nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	margin: auto;
}

#nav button {
	position: absolute;
	top: 55%;
	height: 76px;
	width: 40px;
	margin: -76px 15px 0;
	background: url("/static/img/slider-arrows.png");
	cursor: pointer;
	opacity: .8;
	border: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	-ms-box-shadow: none;
	-o-box-shadow: none;
	box-shadow: none;
	outline: none;
}

#nav button:hover {
	opacity: 1;
}

#nav .prev {
	left: 0;
	margin-left: -40px;
	background-position: left top;
}

#nav .next {
	right: 0;
	margin-right: -40px;
	background-position: right top;
}

#nav button:before {
	display: none;
}

/* Frame
---------------------------------------------- */

#frame {
	position: relative;
	padding: 20px;
	background: url("/static/img/cream-paper.png");
	text-align: center;
	-webkit-box-shadow: inset 0 -4px 5px rgba(255,255,255,.3), inset 0 2px 2px rgba(0,0,0,.15);
	-moz-box-shadow: inset 0 -4px 5px rgba(255,255,255,.3), inset 0 2px 2px rgba(0,0,0,.15);
	-ms-box-shadow: inset 0 -4px 5px rgba(255,255,255,.3), inset 0 2px 2px rgba(0,0,0,.15);
	-o-box-shadow: inset 0 -4px 5px rgba(255,255,255,.3), inset 0 2px 2px rgba(0,0,0,.15);
	box-shadow: inset 0 -4px 5px rgba(255,255,255,.3), inset 0 2px 2px rgba(0,0,0,.15);
}

.photo-wrapper {
	z-index: 1;
	display: inline-block;
	position: relative;
	padding: 10px;
	border-radius: 1px;
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.25);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0,.25);
	-ms-box-shadow: 0 1px 3px rgba(0,0,0,.25);
	-o-box-shadow: 0 1px 3px rgba(0,0,0,.25);
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	background-color: #F5F2F1;
	background: -o-linear-gradient(#F5F2F1,#EBE7E2);
	background: linear-gradient( #F5F2F1,#EBE7E2);
	background: -moz-linear-gradient(top, #F5F2F1,#EBE7E2);
	background: -webkit-gradient(linear, left top, left bottom, from(#F5F2F1 ), to(#EBE7E2));
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1F5F2F1, endColorstr=#1EBE7E2);
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#1F5F2F1, endColorstr=#1EBE7E2)";	
}

.photo {
	width: 100%;
	display: block;
}

.photo-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 10px;
	padding: 10px;
	background: #222;
	opacity: .7;
	-webkit-transition: all .2s ease;
	-moz-transition: all .2s ease;
	-ms-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
}

.photo-wrapper:hover .photo-caption {
	opacity: .85;
}

.title {
	font-size: 24px;
	line-height: 130%;
	color: #FFF;
}

.data {
	margin-top: 5px;
	font-size: 15px;
	color: #DDD;
	letter-spacing: 1px;
}

/* Gallery
---------------------------------------------- */
.gallery {
	overflow: hidden;
	text-align: center;
	background-color: #222;
	background-image: url("/static/img/dark-texture.png");
	border-top: 3px solid #000;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}


/* Slider
---------------------------------------------- */

.slider {
	position: relative;
	margin: 20px 40px;
}

.slider span {
	display: none;
	position: absolute;
	top: 0;
	cursor: pointer;
	border: 40px solid transparent;
	border-radius: 4px;
	opacity: .3;
}

.slider span:hover {
	opacity: .5;
}

.slider span:active {
	opacity: .6;
}

.slider span.disable {
	opacity: .1 !important;
	cursor: default !important;
}

.slider .prev {
	right: 100%;
	border-right: 25px solid rgba(255,255,255,.35);
	border-left: none;
}

.slider .next {
	left: 100%;
	border-left: 25px solid rgba(255,255,255,.35);
	border-right: none;
}

.slider span {
	-webkit-transition: all .15s ease;
	-moz-transition: all .15s ease;
	-ms-transition: all .15s ease;
	-o-transition: all .15s ease;
	transition: all .15s ease;
}

/* Thumbnails
---------------------------------------------- */

#thumbnails {
	max-height: 80px;
	margin: auto;
	padding: 0;
	overflow: hidden;
}

#thumbnails li {
	display: inline-block;
	margin: 0 10px;
	cursor: pointer;
	opacity: .5;
}

#thumbnails li:hover {opacity: .75;}
#thumbnails li.selected {opacity: 1;}


#thumbnails img {
	height: 80px;
	border: 4px solid #FFF;
	border-radius: 1px;
}

#thumbnails li,
#thumbnails li:hover,
#nav,
#nav button,
#nav button:hover,
.slider span {
	-webkit-transition: all .15s ease;
	-moz-transition: all .15s ease;
	-ms-transition: all .15s ease;
	-o-transition: all .15s ease;
	transition: all .15s ease;
}


/* Responsiveness
---------------------------------------------- */

.photo-wrapper, #nav {
	width: 80%;
}

#nav {
	max-width: 830px;
}

.photo-wrapper {
	max-width: 800px;
}

@media(max-width:767px) {
	#header {font-size: 30px;}	
}

@media(max-width:480px) {
	#header {height: 60px; font-size: 20px; line-height: 60px;}
	#frame {padding: 0;}
	#frame:hover #nav {opacity: 1;}
	#nav {width: 75%; z-index: 10; opacity: 0;}
	#nav button {top: 60%; opacity: .4;}
	#nav button:hover {opacity: .6;}
	.photo-wrapper {width: 100%; padding: 0;}
	.photo-caption {
		margin: 0;
		position: relative;
		background: none;
		border: 3px solid rgba(0,0,0,.2);
		border-width: 3px 0;
		color: #888;
		opacity: .7 !important;
	}
	.title {color: #666; font-size: 20px;}
	.data {color: #888; font-size: 16px;}
}


/* Theme Options
---------------------------------------------- */

.themes {
	position: relative;
	width: 100%;
	margin: 20px 0;
	text-align: center;
	color: rgba(255,255,255,.3);
	letter-spacing: 1px;
}

.themes span:hover {
	cursor: pointer;
	color: rgba(255,255,255,.6);
}

.themes .active, .themes .active:hover {
	cursor: default;
	color: rgba(255,255,255,.5);
}